package com.wnnight.wys.service.config;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnnight.wys.entity.PageBean;
import com.wnnight.wys.entity.config.PropertyStaff;

import java.util.List;

/**
 * @ClassName: PropertyStaffService
 * @Description: //TODO
 * @author: LZJ
 * @date: 2022/8/28-10:59
 * @version: v1.0
 */
public interface PropertyStaffService extends IService<PropertyStaff> {
    void add(PropertyStaff propertyStaff, int[] palceIds);

    void update(PropertyStaff propertyStaff, int[] palceIds);

   IPage<PropertyStaff> getAll(IPage<PropertyStaff> page,QueryWrapper<PropertyStaff> queryWrapper);

    PropertyStaff getMenuById(int id);

    PropertyStaff getByAccountAndPassword(String account, String password);

    PropertyStaff getByAccount(String account);

    PropertyStaff getById(int id);

    void updatePsd(int id, String password);

    PropertyStaff getStaffByPlaceId(int placeId);

    List<PropertyStaff> getImg();

}
